<?php
namespace common\models;
use yii\db\ActiveRecord;
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/2/26
 * Time: 10:00
 */
class Logistics extends ActiveRecord {
    public static function tableName()
    {
        return "logistics";
    }

    public function attributeLabels()
    {
        return
            [
                'id'=>'',
                'express_id'=>'快递名称id',
                'mould_name'=>'模板名称',
                'admin_id'=>'商家id',
                'goods_frist'=>'首件重',
                'frist_money'=>'首件收费',
                'goods_next'=>'续重',
                'next_money'=>'续费',
                'express_name'=>'快递名称',
                'express_region'=>'配送区域',
            ];

    }
    public function rules()
    {
        return[
            // name, email, subject 和 body 属性必须有值
            [['mould_name', 'goods_frist', 'frist_money'], 'required'],
        ];
    }

}
